<div class="ItemsWarp items-text clearfix">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="liststyle ">
<{if count($products) > 0}>
<thead>
    <th>货号</th>
    <{foreach from=$cat_prop item=prop key=prop_id}>
        <{if $prop_id neq 'brand_id' && $prop.show eq 1}>
            <th><{$prop.name}></th>
        <{/if}>
    <{/foreach}>
    <th>实价</th>
    <th>购物车</th>
    <th>定制</th>
    <th>比较</th>
</thead>
<tbody>
<{foreach from=$products item=product}>
  <tr product="<{$product.goods_id}>" valign="top" class="<{$mask_webslice}>" id="pdt-<{$product.goods_id}>">
    <td><a href="<{link ctl="product" act="index" arg0=$product.goods_id}>"><{$product.bn}></a></td>
    <{foreach from=$cat_prop item=pro key=pro_id}>
        <{if $pro_id neq 'brand_id' && $pro.show eq 1}>
            <{assign var="p" value=$product["p_{$pro_id}"]}>
            <{if $pro.type eq 'select'}>
                <th><{$pro.options[$p]}></th>
            <{else}>
                <th><{$p}></th>
            <{/if}>
        <{/if}>
    <{/foreach}>
    <td><{$product.price}></td>
    <td><a href="<{link ctl="cart" act="addGoodsToCart" arg0=$product.goods_id}>" target="_blank"><img src="statics/gou.gif" width="30" height="14" /></a></td>
    <td><a href="<{link ctl="action_diamond" act="chooceEndstone" arg0=$product.goods_id}>" target="_blank"><img src="statics/diy.gif" width="30" height="14" /></a></td>
    <td class="textcenter">
    <a href="javascript:void(0);" onclick="gcompare.add({gid:'<{$product.goods_id}>',gname:'<{$product.name|addslashes|escape:html}>',gtype:'<{$product.type_id}>'});" class="btncmp" title="商品对比">
              <{t}>商品对比<{/t}>
             </a>
    </td>
  </tr>
<{/foreach}>
</tbody>
<{/if}>
</table>
</div>
